package com.bootdo.wx.service.impl;

import com.bootdo.wx.dao.GoodsSpikeTimeDao;
import com.bootdo.wx.service.GoodsSpikeTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.bootdo.wx.dao.GoodsSpikeDao;
import com.bootdo.wx.domain.GoodsSpikeDO;
import com.bootdo.wx.service.GoodsSpikeService;



@Service
public class GoodsSpikeServiceImpl implements GoodsSpikeService {
	@Autowired
	private GoodsSpikeDao goodsSpikeDao;
	@Autowired
	private GoodsSpikeTimeService goodsSpikeTimeService;
	
	@Override
	public GoodsSpikeDO get(String id){
		return goodsSpikeDao.get(id);
	}
	
	@Override
	public List<GoodsSpikeDO> list(Map<String, Object> map){
		return goodsSpikeDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return goodsSpikeDao.count(map);
	}
	
	@Override
	public int save(GoodsSpikeDO goodsSpike){
		return goodsSpikeDao.save(goodsSpike);
	}
	
	@Override
	public int update(GoodsSpikeDO goodsSpike){
		return goodsSpikeDao.update(goodsSpike);
	}
	
	@Override
	public int remove(String id){
		return goodsSpikeDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		return goodsSpikeDao.batchRemove(ids);
	}

	/*后台查询秒杀列表*/
	@Override
	public List<Map<String,Object>> getSpikeList(Map<String, Object> map) {
		return goodsSpikeDao.getSpikeList(map);
	}

	@Override
	public int getSpikeListCount(Map<String, Object> map) {
		return goodsSpikeDao.getSpikeListCount(map);
	}
	
}
